from django.urls import path
from . import views

urlpatterns = [
    path("delete_file/", views.delete_file, name="delete_file"),  # 删除文件
    path("login/", views.my_login, name="login"),  # 用户登录
    path("messages/", views.get_messages, name="get_messages"),  # 聊天记录
    path("search_room/", views.search_room, name="search_room"),  # 搜索建议
    path("add_room/", views.add_room, name="add_room"),  # 新增房间
    path("delete_room/", views.delete_room, name="delete_room"),  # 删除房间
    path("undo_message/", views.undo_message, name="undo_message"),  # 撤回消息

    path("rooms/", views.get_room_name, name="get_room_name"),  # 房间名列表

    path("", views.index, name="index"),
    path("<str:room>/", views.room, name="room"),  # 聊天室界面
    path("<str:room>/delete/", views.delete_detail, name="delete_media"),  # 删除详情页

]
